/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2019-2019.
 * Description: decompress.h
 * Author: chenjianguo
 * Create: 2019-01-27
 */
#ifndef ARM_DECOMPRESS_H
#define ARM_DECOMPRESS_H
#ifdef CONFIG_HISI_WATCHDOG

#ifdef CONFIG_KERNEL_XZ
#define FEED_DOG_INTERVAL (50)
#else
#ifdef CONFIG_KERNEL_LZMA
#ifdef CONFIG_ARCH_MULTI_V5 /* SD5203 is slow */
#define FEED_DOG_INTERVAL (100000)
#else
#define FEED_DOG_INTERVAL (300000)
#endif
#else
#define FEED_DOG_INTERVAL (1000)
#endif
#endif

extern void hwdog_feed_intermittent(int interval);

#define decomp_wdog() hwdog_feed_intermittent(FEED_DOG_INTERVAL)

#endif
#endif /* ARM_DECOMPRESS_H */
